<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>管理系统</title>
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/pintuer.css">
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/admin.css">
    <script src="__PUBLIC__/Admin/js/jquery.js"></script>
    <script src="__PUBLIC__/Admin/js/pintuer.js"></script>
    <script src="__PUBLIC__/Admin/js/respond.js"></script>
    <script src="__PUBLIC__/Admin/js/admin.js"></script>
    <link type="__PUBLIC__/Admin/image/x-icon" href="/favicon.ico" rel="shortcut icon" />
    <link href="/favicon.ico" rel="bookmark icon" />
</head>
<body style="margin-right:30px;">
    <div class="panel admin-panel">
     <div class="panel-head"><strong>文章列表(文章数：<?php echo ($contentcount); ?>)</strong></div>
        <div class="padding border-bottom">
            <input type="button" class="button button-small checkall" name="checkall" checkfor="id" value="全选" />
            <a href="<?php echo U('Content/addContent');?>">
                <input type="button" class="button button-small border-green" value="发布文章" />
            </a>
            <!-- <input type="button" class="button button-small border-yellow" value="批量删除" />
            <input type="button" class="button button-small border-blue" value="回收站" /> -->
        </div>
        <table class="table table-hover">
         <tr>
            <th width="45">选择</th>
            <th width="120">ID</th>
            <th width="*">标题</th>
            <th width="150">发布时间</th>
            <th width="150">所属类别</th>
            <th width="100">排序</th>
            <th width="150">操作</th>
        </tr>
            <?php if(is_array($list)): foreach($list as $key=>$v): ?><tr>
                    <td><input type="checkbox" name="id" value="1" /></td>
                    <td><?php echo ($v["id"]); ?></td>
                    <td><?php echo ($v["title"]); ?></td>
                    <td><?php echo ($v["time"]); ?></td>
                    <td><?php echo ($v["type"]); ?>.<?php echo ($typename[$v['type']]); ?></td>
                    <td><?php echo ($v["sort"]); ?></td>
                    <td><a class="button border-blue button-little" href="<?php echo U('Content/savecontent',array('id'=>$v['id']));?>">修改</a> <a class="button border-yellow button-little" href="<?php echo U('Content/deleteContentHandle',array('id'=>$v['id']));?>" onclick="{if(confirm('确认删除?')){return true;}return false;}">删除</a></td>
                </tr><?php endforeach; endif; ?>
        </table>
    </div>
    <br />


</body>
</html>